import unittest


class DemoTestCase(unittest.TestCase):
    # 类方法装饰器
    @classmethod
    # TODO 起始夹子
    def setUpClass(cls) -> None:
        print('setUpClass')

    # TODO 起始小夹子
    def setUp(self) -> None:
        print('setUp')

    # TODO 末尾小夹子
    def tearDown(self) -> None:
        print('tearDownClass')

    def test01(self):
        print('test01')

    def test02(self):
        print('test02')

    def test03(self):
        print('test03')

    # TODO 末尾夹子
    @classmethod
    def tearDownClass(cls) -> None: \
            print('tearDownClass')


if __name__ == '__main__':
    unittest.main(verbosity=2)
